package com.yellowpage.wf.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.SEQUENCE;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * Email entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "WF_EMAIL")
public class Email implements java.io.Serializable {

	// Fields

	private Long emailId;
	private Long nodeInstanceId;
	private String email;
	private String description;
	private String title;
	private String status;

	// Constructors

	/** default constructor */
	public Email() {
	}

	/** full constructor */
	public Email(Long nodeInstanceId, String email, String description,
			String title, String status) {
		this.nodeInstanceId = nodeInstanceId;
		this.email = email;
		this.description = description;
		this.title = title;
		this.status = status;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "EMAIL_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getEmailId() {
		return this.emailId;
	}

	public void setEmailId(Long emailId) {
		this.emailId = emailId;
	}

	@Column(name = "NODE_INSTANCE_ID", precision = 18, scale = 0)
	public Long getNodeInstanceId() {
		return this.nodeInstanceId;
	}

	public void setNodeInstanceId(Long nodeInstanceId) {
		this.nodeInstanceId = nodeInstanceId;
	}

	@Column(name = "EMAIL", length = 500)
	public String getEmail() {
		return this.email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name = "DESCRIPTION", length = 1000)
	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "TITLE", length = 500)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "STATUS", length = 128)
	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

}